package com.cn.xiaonuo.sys.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 七牛云上传配置类
 * @author zhangYu
 * @date 2019/12/16/ 09:35:36
 */
@Data
@Component
@ConfigurationProperties(prefix = "upload.qiniu")
public class UploadProperties {

    /**
     * 域名
     */
    private String domain;

    /**
     * 从下面这个地址中获取accessKey和secretKey
     * https://portal.qiniu.com/user/key
     */
    private String accessKey;

    private String secretKey;

    /**
     * 存储空间名
     */
    private String bucket;
}